<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:di="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input" 
    xmlns:controls="clr-namespace:SilverlightPlayground.LightBox.Controls">

    <Style TargetType="controls:WaitStar">
        <Setter Property="StarBrush" Value="Black" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="controls:WaitStar">
                    <Grid x:Name="RootElement">
                        <Grid.Resources>
                            <Storyboard x:Key="WaitAnimation">
                                <DoubleAnimation From="0" To="30" 
                                                 RepeatBehavior="Forever"
                                                 Duration="00:00:00.200" 
                                                 Storyboard.TargetName="StarRotation" 
                                                 Storyboard.TargetProperty="Angle" />
                            </Storyboard>
                        </Grid.Resources>
                        <Rectangle Fill="{TemplateBinding Background}" Opacity=".25" />
                        <Path x:Name="WheelElement" 
                              Fill="{TemplateBinding StarBrush}" Stroke="{TemplateBinding BorderBrush}" 
                              StrokeThickness="{TemplateBinding BorderThickness}" RenderTransformOrigin="0.5,0.5" Stretch="Fill" 
                              Data="M100.0161,0.5 L110.6261,11.467572 L100.0161,77.273003 L89.406097,11.467572 z M149.77412,13.832632 L153.47887,28.635828 L111.38763,80.320007 L135.10182,18.025829 z M186.19954,50.258049 L182.00633,64.930367 L119.71216,88.644547 L171.39633,46.553303 z M199.5322,100.0161 L188.56462,110.6261 L122.75919,100.0161 L188.56462,89.406097 z M186.19958,149.77412 L171.39638,153.47887 L119.7122,111.38762 L182.00638,135.10181 z M149.77412,186.19957 L135.10181,182.00636 L111.38761,119.71219 L153.47887,171.39636 z M100.01607,199.53217 L89.406067,188.56459 L100.01607,122.75916 L110.62607,188.56459 z M50.258038,186.19955 L46.553295,171.39635 L88.644547,119.71217 L64.930351,182.00635 z M13.832633,149.77415 L18.025827,135.10184 L80.320007,111.38764 L28.63583,153.4789 z M0.5,100.0161 L11.467572,89.406097 L77.273003,100.0161 L11.467572,110.6261 z M13.832617,50.258049 L28.635813,46.553307 L80.319992,88.644554 L18.025814,64.930367 z M50.258045,13.832633 L64.930359,18.025829 L88.644547,80.320007 L46.553303,28.63583 z" 
                              HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="100">
                            <Path.RenderTransform>
                                <RotateTransform x:Name="StarRotation" Angle="0" />
                            </Path.RenderTransform>
                        </Path>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>
